<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Title</title>
    <meta content="" charset="UTF-8">
    <!--<script type="" language="JavaScript" src="script/vue.js">-->
    <script type="" language="JavaScript">
        function hello() {
            person.sayHello();
        }

        // var person = new Object();
        // person.pid = "p01";
        // person.pname = "Jim";
        // person.sayHello = function () {
        //     alert("Hello " + person.pid + person.pname);
        // }

        var person = {
            "pid": "p001",
            "pname": "Tonny",
            sayHello: function () {
                alert("Hello " + person.pid + person.pname);
            }

        }
        window.onload = function () {
            var vue = new Vue({});
        }
    </script>
</head>
<body>
<div id="div0">
    <span>Hello</span>
    <input type="button" value="打招呼" onclick="hello()"></input>
</div>

</body>
</html>